import http from "@/api";
import { ResPage } from "@/api/interface";


/**
 * @name 查询所有公司组织树列表
 */
export const queryAllCompanyOrgTreeList = (params: any): Promise<any> => {
  return http.get<ResPage<any>>('/organizationManagement/queryAllCompanyOrgTreeList', params);
};


/**
 * @name 新增组织
 */

export const addOrganize = (params: any): Promise<any> => {
  return http.post<any>('/organizationManagement/newBranchDepartmentOrg', params);
};


/**
 * @name 编辑组织
 */

export const editOrganize = (params: any): Promise<any> => {
  return http.post<any>('/organizationManagement/orgEditing', params);
};
